package com.baiku.sanhos.mapper;
import com.baiku.sanhos.pojo.entity.Admin;
import com.baiku.sanhos.pojo.vo.AdminVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;
@Repository
public interface AdminMapper extends BaseMapper<Admin> {
    /**
     * 查：查询管理员用户名 密码等信息
     * @param userName
     * @return
     */
    AdminVo selectByUserName(String userName);

    /**
     *查：查询管理员的信息
     * @param phone
     * @return
     */
    AdminVo selectByPhone(Long phone);

    /**
     * 管理员注册
     */

    int saveInsert(Admin admin);
}

